/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
#include <stdint.h>
#include "at32_mcu_info.h"
#include "bootloader.h"
#include "dev_info.h"

/**
 * @brief 固件信息，用于固件升级，否则升级工具无法识别固件。
 *
 */
const firmware_info_t zino_firemware_info __attribute__((section("firemware_info")))= {
    .infoCrc = ~FLASH_FW_MAGIC,
    .magic = FLASH_FW_MAGIC,
    .start_addr = FLASH_APP_ADDR,//固件起始地址
    .size = 0,
    .FWcrc = 0,
    .version = VESION2INT(0,0,0,1),//固件版本号
    .pid =PID2INT(1,2,3,4),//产品ID
    .name = "ZINO Guo Li Forklift V0.1",
    .date = DATE2INT(2025,1,27),//固件生成日期
    .DeviceID = AT32F421C8T7_64KB_LQFP48,//产品主控型号
};
uint32_t get_dev_pid(void)
{
    return zino_firemware_info.pid;
}
uint32_t get_dev_vid(void)
{
    return zino_firemware_info.version;
}
